]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Ensure icon grid is always aligned with the pixel grid
authorSebastian Keller <skeller@gnome.org>
Thu, 8 Apr 2021 15:40:43 +0000 (17:40 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 8 Apr 2021 16:50:46 +0000 (16:50 +0000)
commit6f0589313d886fe0848384ef29fecd22ea09405d
tree66039ab576056ab652583cab0f0683ba031b9e7b
parent1b5d71130e3a48d8f636542f979346add7829544
appDisplay: Ensure icon grid is always aligned with the pixel grid

When adaptToSize was called with an odd width, the calculated padding
was not an integer and as a result the icon grid was no longer aligned
to the pixel grid. Similarly it was possible for the page size to be a
non-integer value, which was causing items to not be aligned for
pages > 1.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4015

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1799>
js/ui/appDisplay.js